package priv.wangy.micro.common.po.http.rspn.code;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wangy
 * @since 2023-11-13
 */
@Getter
@AllArgsConstructor
public enum FileErrorEnum implements IHttpRspnEnum {
    /**
     * 文件服务错误响应码
     */
    FILE_EXCEPTION("020000", "文件异常"),
    FILE_EMPTY("020001", "上传文件为空"),
    FILE_SIZE("020002", "文件大小在5M内"),
    FILE_SUFFIX("020003", "文件后缀不符合要求"),
    FILE_PATH("020004", "文件仓库路径异常"),
    FILE_UPLOAD("020005", "文件上传失败"),
    FILE_SAVE("020006", "文件存储失败"),
    EXTENSION_LIMIT("020007", "目标文件格式不支持预览"),
    FILE_TYPE_ERROR("020008", "未找到目标文件"),
    FILE_ZIP_FAILED("020009", "文件压缩异常");

    private final String rspnCode;

    private final String rspnMsg;
}
